﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace GolfLeague.Models
{
    [MetadataType(typeof(Round_Validation))]
    public partial class Round
    {
        public Round()
        {
            RoundDate = DateTime.Now;
        }
    }

    public class Round_Validation
    {
        [Required(ErrorMessage = "Round Date is required.")]
        [Display(Name = "Round Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime RoundDate { get; set; }
    }
}